FROM alibabadragonwell/dragonwell:17-anolis

ENV TZ=Asia/Shanghai
ENV LANG C.UTF-8
ENV JAVA_OPTS="-Xms512m -Xmx4096m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /scs-boot

WORKDIR /scs-boot

EXPOSE 9988

ADD ./target/scs-boot.jar ./

CMD java $JAVA_OPTS -jar scs-boot.jar
